package com.cskaoyan.bean.vo.admin.order;

import com.cskaoyan.bean.MarketOrder;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author: zhang
 * @Date: 2022/11/21 15:44
 * @Since: jdk1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MarketOrderDetailVo {

    private User user;
    private MarketOrder order;
    private List<OrderGoods> orderGoods;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class User {

        private String nickname;
        private String avatar;

    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class OrderGoods {

        private Integer id;
        private Integer orderId;
        private Integer goodsId;
        private String goodsName;
        private String goodsSn;
        private Integer productId;
        private Integer number;
        private BigDecimal price;
        private String picUrl;
        private Integer comment;
        private Date addTime;
        private Date updateTime;
        private boolean deleted;
        private String[] specifications;
    }
}
